# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=psautohint
pkgver=2.1.0
pkgrel=0
pkgdesc="A standalone version of AFDKO's autohinter"
url="https://github.com/adobe-type-tools/psautohint"
arch="all !s390x !mips !mips64" # ufo2ft
license="Apache-2.0"
depends="python3 py3-fonttools py3-lxml py3-statmake py3-ufo2ft"
makedepends="py3-setuptools python3-dev"
source="https://github.com/adobe-type-tools/psautohint/releases/download/v$pkgver/psautohint-$pkgver.zip"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="6645235d4cbeb94f9137016897ee9c07ba6f61f9a7711dcc1011d3dd6ffde863272a7d52c7f8539d55683d53488f1b61aac96df04a48141edb05e2c82a7bbf0f  psautohint-2.1.0.zip"
